package main

import (
	"strconv"
	"syscall"
)

func Kill(pidstr string) {
	if pid, err := strconv.Atoi(pidstr); err == nil {
		if h, err := syscall.OpenProcess(syscall.PROCESS_TERMINATE, false, uint32(pid)); err == nil {
			_ = syscall.TerminateProcess(h, uint32(pid))
		}
	}
}
